package com.nit.lab.dto.basic;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * @文件名：StudentDTO
 * @创建人: lxr
 * @创建时间: 2020/3/23
 * @描述:
 */
public class StudentDTO {
    private Long key;

    private Long studentId;

    private String studentCode;

    private String studentPwd;

    private String studentName;

    private Integer roleId;

    private String phone;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date gmtCreate;

    private String openId;
    private String unionId;
    private Integer studentCurrency;

    public StudentDTO() {
    }

    public StudentDTO(Long key, Long studentId, String studentCode, String studentPwd, String studentName,
                      Integer roleId, Date gmtCreate) {
        this.key = key;
        this.studentId = studentId;
        this.studentCode = studentCode;
        this.studentPwd = studentPwd;
        this.studentName = studentName;
        this.roleId = roleId;
        this.gmtCreate = gmtCreate;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getUnionId() {
        return unionId;
    }

    public void setUnionId(String unionId) {
        this.unionId = unionId;
    }

    public Integer getStudentCurrency() {
        return studentCurrency;
    }

    public void setStudentCurrency(Integer studentCurrency) {
        this.studentCurrency = studentCurrency;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Long getKey() { return key; }

    public void setKey(Long key) { this.key = key; }

    public Long getStudentId() { return studentId; }

    public void setStudentId(Long studentId) { this.studentId = studentId; }

    public String getStudentCode() { return studentCode; }

    public void setStudentCode(String studentCode) { this.studentCode = studentCode; }

    public String getStudentPwd() { return studentPwd; }

    public void setStudentPwd(String studentPwd) { this.studentPwd = studentPwd; }

    public String getStudentName() { return studentName; }

    public void setStudentName(String studentName) { this.studentName = studentName; }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public Date getGmtCreate() { return gmtCreate; }

    public void setGmtCreate(Date gmtCreate) { this.gmtCreate = gmtCreate; }
}
